#include <stdio.h>
#include <ctype.h>

#define N 80

int main()
{
    char s[N + 1];
    int c, i = 0;
    while ((c = getchar()) != '\n')
    {
        s[i++] = c;
    }
    s[i] = '\0';
    int len = i;
    for (int i = 0; i < len; i++)
    {
        if (isalpha(s[i]))
        {
            if (islower(s[i]))
                    s[i] = toupper(s[i]);
            while (isalpha(s[++i]));
        }
    }
    puts(s);
    return 0;
}